package name.xiaokan.symbolprocessor;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;

/* author:Xiaokan*/

public class SymbolProcessor {

    /**
     * @param args
     */
    static String src = "gre2006.csv";
    static String dst = "gre2006_processed.csv";

    public static void main(String[] args) throws Exception {

	BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(src)));
	BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(dst)));
	
	String line = null;
	StringBuffer sb;
	 while ((line = br.readLine()) != null) {
	 System.out.println(line);
	 if(!"".equals(line)){
	 sb = new StringBuffer(line);
	 int pos;
	 while((pos=sb.indexOf("\""))!=-1)
	 sb.deleteCharAt(pos);
	 System.out.println(sb.toString());
	 bw.write(sb.toString()+"\r\n");
	 }
	 }
	bw.flush();
	bw.close();
	br.close();

    }

}
